<?php
namespace App\Api;
use PhalApi\Api;
use App\Domain\MirCategoryList as Domain;

/**
 * 分类详情的例表
 * @author: dogstar <chanzonghuang@gmail.com> 2014-10-04
 */
class MirCategoryList extends Api {
    public function getRules() {
        return array(
            'Category' => array(
                'Category' => array('name'=> 'Category','require' => false, 'desc' => 'Category'),
                'CategoryTitle' => array('name'=> 'CategoryTitle','require' => false, 'desc' => 'CategoryTitle'),
            ),
        );
    }

    /**
     * 分类详情的例表
     * @desc 默认接口服务，当未指定接口服务时执行此接口服务
     * @return string title 标题
     * @return string content 内容
     * @return string version 版本，格式：X.X.X
     * @return int time 当前时间戳
     * @exception 400 非法请求，参数传递错误
     */
    public function Category() {
        $Category = $this->Category;
        $CategoryTitle = $this->CategoryTitle;

        $Domain = new Domain();
        return $Domain->selectByCategoryList($this);
    }

}
